import request from '@/utils/request'

// 可以投递
export function getAllTenderCanBeApproved(data) {
  return request({
    url: '/getAllTenderCanBeApproved',
    method: 'get',
    params:data
  })
}


export function getTenderApplyRecords(data) {
  return request({
    url: '/getTenderApplyRecords',
    method: 'get',
    params:data
  })
}

// 收到邀约
export function getAllTenderBySupplierId(data) {
  return request({
    url: '/getAllTenderBySupplierId',
    method: 'get',
    params:data
  })
}

// 接受 拒绝 邀约
export function operateInvitation(data) {
  return request({
    url: '/operateInvitation',
    method: 'put',
    data
  })
}

// 竞标案 申请
export function commitTenderApplication(data) {
  return request({
    url: '/commitTenderApplication',
    method: 'post',
    data
  })
}

export function deleteSupplierTenderRecords(data) {
  return request({
    url: '/deleteSupplierTenderRecords',
    method: 'put',
    data
  })
}

export function getAllTenderCanBeCompeted(data) {
  return request({
    url: '/getAllTenderCanBeCompeted',
    method: 'get',
    params:data
  })
}

export function getTenderProductCanBeCompeted(data) {
  return request({
    url: '/getTenderProductCanBeCompeted',
    method: 'get',
    params:data
  })
}

export function competeTender(data) {
  return request({
    url: '/competeTender',
    method: 'post',
    data
  })
}

export function getCompeteRecords(data) {
  return request({
    url: '/getCompeteRecords',
    method: 'get',
    params:data
  })
}

export function getCompeteResult(data) {
  return request({
    url: '/getCompeteResult',
    method: 'get',
    params:data
  })
}

export function getCompeteRankingRecords(data) {
  return request({
    url: '/getCompeteRankingRecords',
    method: 'get',
    params:data
  })
}

export function getCompeteMinimumPriceRecords(data) {
  return request({
    url: '/getCompeteMinimumPriceRecords',
    method: 'get',
    params:data
  })
}